﻿@model IEnumerable<CSCSN.EntitiyModels.ApplicationTask>

@{
    ViewData["Title"] = "Index";
}

    <h1>个人任务管理</h1>


<table class="table">
    <thead>
        <tr>
            <th>
                <p>名称</p>
            </th>
            <th>
                <p>地点</p>
            </th>
            <th>
               <p>分值</p>
            </th>
            <th>
                <p>开始时间</p>
            </th>
            <th>
               <p>时长/小时</p>
            </th>
            <th>
                <p>发起人</p>
            </th>
            <th> 
            <p>取消</p>
            </th>
        </tr>
    </thead>
    <tbody>
@foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.TaskSites.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Score)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.BeginTime)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Duration)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.ApplicationRole.Name)
            </td>
            <td>
                <a asp-action="Delete" asp-route-id="@item.Id">取消该项任务</a>
            </td>
        </tr>
}
    </tbody>
</table>
